package com.example.poverty.dao;

import com.example.poverty.entity.OrganizationDepartment;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 主管单位 dao层
 */
@Repository
public interface OrganizationDepartmentMapper {

    //    增加
    public int insert(OrganizationDepartment organizationDepartment);

    //    更新
    public int update(OrganizationDepartment organizationDepartment);

    //    删除
    public int delete(Integer id);

    //    根据主键查询
    public OrganizationDepartment selectByPrimaryKey(Integer id);

    //    查询所有工作队信息
    public List<OrganizationDepartment> allOrganizationDepartment();

    //    根据单位查询相应信息
    public OrganizationDepartment getByUnit(String unit);

}
